package ua.maxicash.dto;

import ua.maxicash.vo.Region;

public class RegionJsonDto {

	private Long idRegion;
	private String ruName;
	private String enName;

	public RegionJsonDto() {
	}

	public Long getIdRegion() {
		return idRegion;
	}

	public void setIdRegion(Long idRegion) {
		this.idRegion = idRegion;
	}

	public String getRuName() {
		return ruName;
	}

	public void setRuName(String ruName) {
		this.ruName = ruName;
	}

	public String getEnName() {
		return enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}
	
	public static RegionJsonDto createFromRegion(Region region){
		
		RegionJsonDto rjd = new RegionJsonDto();
		rjd.setEnName(region.getEnName());
		rjd.setRuName(region.getRuName());
		rjd.setIdRegion(region.getIdRegion());
		
		return rjd;
		
	}

}
